var mongoose = require('./db').mongoose;

var Schema = mongoose.Schema;

var ClassSchema = new Schema({
    classname: String,
    subjects: String,
    number: Number,
    teacher: String,
    time: Date
});

var Clazz = mongoose.model('Class', ClassSchema);

exports.Class = Clazz;